<template>
    <el-row class="container">
        
        <el-menu default-active="1-1" :collapse="isCollapse" :class="{w150:!isCollapse}"  >
            <p class="mytitle" @click="updateMenu">
                <i v-if="isCollapse" class="el-icon-menu"></i>
                <span v-else>乐凯撒</span>
            </p>
            <el-submenu index="1" :class="{w150:!isCollapse}">
                <template slot="title"  >
                    <i class="el-icon-menu"> </i>
                    <span > 二维码 </span>
                </template>
                <el-menu-item index="1-1" :class="{w150:!isCollapse}">二维码生成</el-menu-item>
            </el-submenu>
            <el-submenu index="2" :class="{w150:!isCollapse}">
                <template slot="title"  >
                    <i class="el-icon-menu"> </i>
                    <span > 二维码 </span>
                </template>
                <el-menu-item index="2-1" :class="{w150:!isCollapse}">二维码生成</el-menu-item>
            </el-submenu>
        </el-menu>
        <el-col class="content" >
            <div class="myheader">
                
            </div>
            <div class="mycontent">
                <el-col :span="24">
                    <operation-data> </operation-data>
                </el-col>
            </div>
            <div class="myfooter"></div>
        </el-col>
    </el-row>
</template>

<script>
import operationData from './operationData';
export default {
  name:"QrCode",
  data(){
      return {
          isCollapse:false,
      }
  },
  components:{operationData},
  methods:{
      updateMenu(){
          this.isCollapse = !this.isCollapse;
      }
  }
}
</script>

<style scoped>
.container{
    display:absolute;
    top:0px;
    left:0px;
    display: flex;
    height:100%;
}
.container .mytitle{
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    text-align: center;
    font-family:"微软雅黑";
    background-color: #111113;
    color: #fff;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
}
.el-menu,
.el-submenu,
.el-submenu .el-menu-item{
    min-width:auto;
    border-radius: 0;
}
.w150{
    width:150px;    
}
.el-menu,.el-menu-item{
    height:100%;
}
.container .content{
    position: relative;
    height:100%;
}
.myheader{
    position: absolute;
    top:0;
    left:0;
    height: 50px;
    width:100%;
    background-color:#111113;
}
.mycontent{
    position: absolute;
    top:50px;
    left: 0px;
    width: 100%;
    height:100%;
}

</style>

